package cn.zzuisa.bluebox.biz.device.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import springfox.documentation.annotations.ApiIgnore;

/**
 * <p>
 * 设备设备
 * </p>
 *
 * @author Ao
 * @since 2018-12-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("g_device_dev")
@ApiModel(value="device对象", description="设备")
public class Device extends Model<Device> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @JsonIgnore
    private Long id;

    @ApiModelProperty(value = "设备的名称")
    private String name;



    @ApiModelProperty(value = "状态",example = "0")
    private Integer status;
    @ApiModelProperty(value = "描述", example = "this is a bluebox")
    private String description;

    @ApiModelProperty(value = "添加时间")
    @JsonIgnore
    private Date createTime;

    @ApiModelProperty(value = "产品唯一标识")
    private String uuid;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
